package decorator_pattern;

/**
 * ConcreteComponentB
 *
 * @author wangzg13
 * @since 2022/7/30
 */
public class BDecorator extends Decorator{
    @Override
    public void operate() {
        this.bDecoratorMethod();
        super.operate();
    }
    private void bDecoratorMethod(){
        System.out.println("B装饰类的装饰");
    }

    public BDecorator(Component component) {
        super(component);
    }
}
